package com.example.devtool.generate.controller;

import com.example.devtool.core.common.BaseResponse;
import com.example.devtool.generate.entity.GenerateHistory;
import com.example.devtool.generate.service.IGenerateHistoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 代码生成历史表 前端控制器
 * </p>
 *
 * @author zhuliangxuan
 * @since 2022-05-22
 */
@RestController
@RequestMapping("/generateHistory")
public class GenerateHistoryController {
    @Autowired
    private IGenerateHistoryService iGenerateHistoryService;

    @RequestMapping("/all")
    public BaseResponse<List<GenerateHistory>> queryAll() {
        return BaseResponse.success(iGenerateHistoryService.list());
    }
}
